﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.EntityFrameworkCore;

namespace Qianke.Core.Saas.EntityFramework
{
    public class BaseDbContext : AbpDbContext<BaseDbContext>
    {
        public BaseDbContext(DbContextOptions<BaseDbContext> options) : base(options)
        {
        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            // 其他配置...

            // 启用延迟加载
            optionsBuilder.UseLazyLoadingProxies();
        }
    }
}
